package com.spring.captchademo.controller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RequestMapping("/logger")
@RestController
public class LoggerLevelController {
//    private static Logger logger = LoggerFactory.getLogger(LoggerLevelController.class);
    @RequestMapping("/print")
    public String print(){
        log.trace("trace");
        log.debug("debug");
        log.info("info");
        log.warn("warn");
        log.error("error");
        return "日志打印成功";
    }
}
